package com.demo.springBoot2.service;

import com.demo.springBoot2.entity.UsersInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.demo.springBoot2.entity.dto.UsersInfoLoginDTO;

import java.util.List;

/**
 * <p>
 * 用户信息 服务类
 * </p>
 *
 * @author wuHua·pl
 * @since 2024-03-16
 */
public interface IUsersInfoService extends IService<UsersInfo> {
    UsersInfo getUserByName(String username);
    UsersInfoLoginDTO userLogin(UsersInfo usersInfo);
    List<UsersInfoLoginDTO> getUserByPhone(String phone,Integer userId);
    UsersInfoLoginDTO getUserByUserId(Integer userId);

    //通过手机号模糊查询用户
    List<UsersInfoLoginDTO> findByPhone(String phone);
    //通过id查询个人信息
    UsersInfo selectById(Integer id);
}
